<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script type="text/javascript">
			document.write('<script src="../../js/fix.js?rd=?rd=' + Math.random() + '"><\/script>');
		</script>
		<script type="text/javascript">
			link(['../../css/tour/missionDetail.css', '../../css/tour/imgLoad.css']);
		</script>
		<style>
			.mui-icon-camera{ display: none; }
			.handle span{ display: inline-block; padding: 0 5px; border-radius: 3px; }
			.sanm{ width: 100px; }
			.mui-title a{ position: relative; top: 3px; left: 10px;}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">巡查任务<a class="mui-icon iconfont icon-shaixuan" id='selectType'></a></h1>
			<a class="mui-icon mui-icon-camera mui-pull-right" id="jumpToScane"></a>
		</header>
		<div class="mui-content" id="list_wrap" style="padding-bottom:50px ;">
			<!--<div class="mui-card">
				<div class="mui-card-header mui-card-media">
					<img src="../../images/ic_firestation.svg" />
					<div class="mui-media-body">
						{{item.siteClassName}}
						<p>更新 {{item.createDate}}</p>
					</div>
				</div>
				<div class="mui-card-content mui-content-padded mui-text-right createTask">
					<button type="button" class="mui-pull-left createTaskBtn">未发现问题</button>
					<button type="button" class="mui-btn-danger" data-id="{{item.taskId}}" id="createTaskBtn">发现问题</button>
				</div>
			</div>-->
		</div>
		
		<script type="text/html" id="taskList">
			{{each result as item}}
			<div class="mui-card flex2">
				<div class="mui-card-header mui-card-media">
					<img src="../../images/ic_firestation.svg" />
					<div class="mui-media-body">
						{{item.siteClassName}}
						<p>更新 {{item.createDate}}</p>
					</div>
				</div>
				<div class="mui-pull-right btn-row handle">
					{{if item.status == 0}}
					<button type="button" class="mui-btn-danger" data-id="{{item.taskId}}">处理</button>
					{{else}}
					<button type="button" class="mui-btn-success" data-id="{{item.taskId}}" disabled>已处理</button>
					{{/if}}
				</div>
			</div>
			{{/each}}
		</script>
		
		<script type="text/html" id="taskDetailList">
			{{each result as item}}
			<div class="mui-card flex2 task-li" data-id="{{item.id}}" data-siteId="{{item.siteId}}">
				<div class="mui-card-header mui-card-media">
<!-- 					<img src="../../images/img_info.svg" /> -->
					<div class="mui-media-body" style="margin-left: 0;">
						{{item.siteName}}
						<p>开始时间：{{item.taskStart.slice(0,10)}}</p>
						<p>结束时间：{{item.taskEnd.slice(0,10)}}</p>
					</div>
				</div>
				<div class="mui-pull-right btn-row handle">
					{{if item.taskStatus == 1}}
					<span class="mui-btn-primary">未完成</span>
					{{else if item.taskStatus == 2}}
					<span class="mui-btn-success">完好</span>
					{{else}}
					<span class="mui-btn-danger">有问题</span>
					{{/if}}
				</div>
<!-- 				<div class="mui-pull-right btn-row deal">
					{{if item.dealStatus == 0}}
					<button type="button" class="mui-btn-danger" data-id="{{item.taskId}}">处理</button>
					{{else}}
					<button type="button" class="mui-btn-success" data-id="{{item.taskId}}" disabled>已处理</button>
					{{/if}}

				</div> -->
			</div>
			{{/each}}
		</script>
		<script type="text/javascript">
			//必须顺序加载
			script(['../../js/tour/bbsDetails.js']);
		</script>
	</body>

</html>